package Thread;

public class  LambdaDemo {
    public static void main(String[] args) {

        //实现类方法实现
        MyRunnable myRunnable = new MyRunnable();
        Thread t = new Thread(myRunnable);
        t.start();

        //匿名内部类
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("多线程启动2");
            }
        }).start();

        new Thread(()->{
            System.out.println("多线程启动3");
        }).start();
    }
}
